package com.haierp.service;

import java.util.List;

import com.baomidou.framework.service.ISuperService;
import com.haierp.enums.InoutOperatorType;
import com.haierp.model.InventoryArea;
import com.haierp.model.ItemSku;
import com.haierp.model.purchase.PurchaseStorage;
import com.haierp.util.JsonPageResult;
import com.haierp.vo.InventoryQueryVO;

public interface IInventoryAreaService  extends ISuperService<InventoryArea> {

	void addInventoryArea(InventoryArea inventoryArea ,InoutOperatorType type,String inoutReason);
	
	JsonPageResult<List<InventoryArea>> queryInventoryAreas(InventoryQueryVO inventoryQueryVO);

	/**
	 * 从采购表导入库存数据
	 * 
	 * @param purchaseStorage
	 */
	void importPurchaseStorage(PurchaseStorage purchaseStorage);

	/**
	 * 库存盘进
	 * @param skuId
	 * @param warehouseId
	 * @param positionNo
	 * @param quantity
	 */
	void inventoryCheckIn(Long skuId,Long warehouseId,String positionNo,Integer quantity,String inoutReason);

	List<InventoryArea> queryInventoryAreaForExcel(InventoryQueryVO inventoryQueryVO);

	void changePositionNo(InventoryArea inventoryArea);
}
